angular.module('slide-banner',[])
.directive 'slideBanner', ->
    restrict    : 'E'
    templateUrl : 'templates/slide-banner/slide-banner.html'
    scope:
        'items' : '=items'
        'distanceBottom' : '=distanceBottom'
    link: ($scope, $element, $attrs) ->
        if $scope.distanceBottom?
            console.log $scope.distanceBottom
            availHeight = window.innerHeight
            console.log availHeight
            banner = document.getElementById('banner')
            banner.style.height = (availHeight - $scope.distanceBottom)+'px'



